package com.plm.frame.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.plm.frame.mapper.DingdanMapper;
import com.plm.frame.model.Dingdan;
import com.plm.frame.service.DingdanService;



@Service
@Transactional  //此处不再进行创建SqlSession和提交事务，都已交由spring去管理了。
public class DingdanServiceImpl implements DingdanService {
	
	@Resource
	private DingdanMapper mapper;

	@Override
	public List<Dingdan> selectDingdan(Dingdan dingdan) {
		// TODO Auto-generated method stub
		return mapper.selectDingdan(dingdan);
	}

	@Override
	public void addDingdan(Dingdan dingdan) {
		// TODO Auto-generated method stub
		mapper.addDingdan(dingdan);
	}

	@Override
	public void deleteDingdan(Dingdan dingdan) {
		// TODO Auto-generated method stub
		mapper.deleteDingdan(dingdan);
	}

	


}
